package com.tangzx

import com.tangzx.tasks.ConfusionTask
import org.gradle.api.Project
import org.gradle.api.Plugin

/**
 * @author Tangzx
 * Created: Tue Jun 23 17:25:12 CST 2015
 */
class SWFConfusionPlugin implements Plugin<Project> {
   void apply (Project project) {
       project.convention.plugins.SWFConfusionPlugin = new SWFConfusionPluginConvention()
       project.extensions.create("confusion", SWFConfusionPluginConvention)

       project.task([type:ConfusionTask], "confusion") {
           group = "SWF Confusion"
           description = "混淆SWF"
       }
   }
}